<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
       
        <ui:define name="content">
             
                <p:panel header="#{bundle.EditPrixTitle}">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.EditPrixLabel_idprix}" for="idprix" />
                        <p:inputText id="idprix" value="#{prixController.selected.idprix}" title="#{bundle.EditPrixTitle_idprix}" required="true" requiredMessage="#{bundle.EditPrixRequiredMessage_idprix}"/>
                        <h:outputLabel value="#{bundle.EditPrixLabel_somme}" for="somme" />
                        <p:inputText id="somme" value="#{prixController.selected.somme}" title="#{bundle.EditPrixTitle_somme}" required="true" requiredMessage="#{bundle.EditPrixRequiredMessage_somme}"/>
                        <h:outputLabel value="#{bundle.EditPrixLabel_dateprix}" for="dateprix" />
                        <p:inputText id="dateprix" value="#{prixController.selected.dateprix}" title="#{bundle.EditPrixTitle_dateprix}" required="true" requiredMessage="#{bundle.EditPrixRequiredMessage_dateprix}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </p:inputText>
                        <h:outputLabel value="#{bundle.EditPrixLabel_iditem}" for="iditem" />
                        <p:selectOneMenu id="iditem" value="#{prixController.selected.iditem}" title="#{bundle.EditPrixTitle_iditem}" required="true" requiredMessage="#{bundle.EditPrixRequiredMessage_iditem}">
                            <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                    </h:panelGrid>
                    <h:commandLink action="#{prixController.update}" value="#{bundle.EditPrixSaveLink}"/>
                    <br />
                    <br />
                    <h:commandLink action="View" value="#{bundle.EditPrixViewLink}" immediate="true"/>
                    <br />
                    <h:commandLink action="#{prixController.prepareList}" value="#{bundle.EditPrixShowAllLink}" immediate="true"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.EditPrixIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
